package com.hunnyovo.springframework.beans.factory.support;

import com.hunnyovo.springframework.beans.BeansException;
import com.hunnyovo.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * Cglib实例化bean策略接口实现
 *
 * @author Create By Cb
 * @date 2022/10/26 18:36
 **/
public class CglibInstantiationStrategy implements InstantiationStrategy {

    @Override
    public Object instantiation(BeanDefinition beanDefinition, String beanName, Constructor<?> constructor, Object... args) throws BeansException {
        // Enhancer enhancer = new Enhancer();
        return null;
    }

}
